<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/shop/merchantCommonType/insert' :'/shop/merchantCommonType/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			<c:if test="${requestScope.record !=null}">
				<input type="hidden" name="commonTypeId" value="${requestScope.record.commonTypeId}" />
					 <input name="addTime" class="required" maxlength="${field.size}" type="hidden" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${requestScope.record.addTime}"/>' />
					 <input name="operator" class="required" maxlength="50" type="hidden" value="${requestScope.record.operator}" />
					 <input name="del" class="required" maxlength="1" type="hidden" value="${requestScope.record.del}" />
			</c:if>
			<p>
				<label>分类：</label> <select name="typeClass" class="combox required">
					<option value="">请选择</option>
					<option value="0" ${requestScope.record.typeClass == 0 ? 'selected' : ''}>容量单位</option>
					<option value="1" ${requestScope.record.typeClass == 1 ? 'selected' : ''}>资源分组名称</option>
				</select>
			</p>
			<p>
				<label>名称</label> <input name="typeName" class="required" maxlength="50" type="text" value="${requestScope.record.typeName}" />
			</p>

		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
